//
//  YXAmendMessageView.m
//  跑跑快销
//
//  Created by 杨潇 on 14-4-30.
//  Copyright (c) 2014年 ylife. All rights reserved.
//

#import "YXAmendMessageView.h"

@implementation YXAmendMessageView
@synthesize amendTextVi,amendBtn;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        self.backgroundColor = [UIColor grayColor];
        amendTextVi = [[UITextView alloc] initWithFrame:CGRectMake(10, 20, 300, 80)];
        amendTextVi.textColor = [UIColor blackColor];
        amendTextVi.textAlignment = NSTextAlignmentLeft;
        amendTextVi.font = [UIFont systemFontOfSize:18];
        [self addSubview:amendTextVi];
        
        amendBtn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
        amendBtn.backgroundColor = [UIColor blueColor];
        [amendBtn setTitle:@"确认修改" forState:UIControlStateNormal];
        amendBtn.frame = CGRectMake(10, amendTextVi.frame.origin.y + amendTextVi.frame.size.height + 20, 300, 40);
        amendBtn.layer.cornerRadius = 6;
        [self addSubview:amendBtn];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
